FROM python:3.8.2

WORKDIR ./auto-data

ADD . .

EXPOSE 5000
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN pip install -r requirements.txt

CMD ["flask", "run", "-h", "0.0.0.0"]
